package com.example.Mapper;

import com.example.Domain.Operate;
import com.example.Domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface UserMapper {
    User LoginOrEmail(@Param("loginName") String loginName, @Param("email") String email);
    //验证邮箱是否存在
    int checkEmail(String email);
    int updatePasswordByEmail(User user);
    User checkLogin(@Param("email") String email);
    void insertOperate(Operate operate);
    void upDatePasswordTime(String loginName );
    void getUserCount2(String loginName);
    void gettimepassword(String loginName);
    void updateuserCount(String loginName);
    int getUserCount(String loginName);
    Date getsdbegintime(String loginName);

}
